﻿using MRSite.AutoMapper.Attributes;
using MRSite.Entity;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{
    [AutoMapBoth(typeof(CustomerCart))]
    [ProtoContract]
    public class CustomerCartDto
    {
        [ProtoMember(1)]
        public int id { get; set; }


        [ProtoMember(2)]
        public int user_id { get; set; }

        [ProtoMember(3)]
        public string user_name { get; set; }

        [ProtoMember(4)]
        public int article_id { get; set; }

        [ProtoMember(5)]
        public int quantity { get; set; }

        [ProtoMember(6)]
        public Decimal sell_price { get; set; }

        [ProtoMember(7)]
        public Decimal user_price { get; set; }

        [ProtoMember(8)]
        public String img_url { get; set; }

        [ProtoMember(9)]
        public int sku_id { get; set; }

        [ProtoMember(10)]
        public string sku_name { get; set; }

        [ProtoMember(11)]
        public String title { get; set; }

        [ProtoMember(12)]
        public Decimal point { get; set; }

        [ProtoMember(13)]
        public Decimal sell_point { get; set; }

        [ProtoMember(14)]
        public DateTime add_time { get; set; }

        [ProtoMember(15)]
        public int shopid { get; set; }

        [ProtoMember(16)]
        public Decimal PV { get; set; }

        [ProtoMember(17)]
        public int channel_id { get; set; }

        [ProtoMember(18)]
        public Decimal hongbao { get; set; }

        [ProtoMember(19)]
        public decimal score { get; set; }

        [ProtoMember(20)]
        public Decimal hongbao_first { get; set; }

        [ProtoMember(21)]
        public Decimal score_first { get; set; }

        [ProtoMember(22)]
        public ProductDto ProductItem { get; set; }

    }
}
